package io.mybatis.example.springboot.model;

import io.mybatis.provider.Entity;
import org.apache.ibatis.type.JdbcType;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * sys_dict_type - 字典类型表
 *
 * @author mkj
 */
@Getter
@Setter
@Entity.Table("sys_dict_type" remark = "字典类型表", autoResultMap = true)
public class SysDictTypeDO {
  @Entity.Column(value = "dict_id", id = true, remark = "字典主键", updatable = false, insertable = false)
  private Long dictId;

  @Entity.Column(value = "dict_name", remark = "字典名称")
  private String dictName;

  @Entity.Column(value = "dict_type", remark = "字典类型")
  private String dictType;

  @Entity.Column(value = "status", remark = "状态（0正常 1停用）")
  private String status;

  @Entity.Column(value = "create_by", remark = "创建者")
  private String createBy;

  @Entity.Column(value = "create_time", remark = "创建时间", jdbcType = JdbcType.TIMESTAMP)
  private Date createTime;

  @Entity.Column(value = "update_by", remark = "更新者")
  private String updateBy;

  @Entity.Column(value = "update_time", remark = "更新时间", jdbcType = JdbcType.TIMESTAMP)
  private Date updateTime;

  @Entity.Column(value = "remark", remark = "备注")
  private String remark;

}
